package com.cqie.secondhandtransaction.DTO;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;


@Data
public class StatusDTO {

    //用于查询卖出，审核
    @ApiModelProperty(value = "0-已卖出，1-已发布，2-待审核，3-管理员查看的待审核列表")
    @NotNull(message = "状态不能为空！")
    @Range(min = 0, max = 3, message = "状态值必须在0到3之间")
    private Integer status;
}
